﻿<%@ page language="C#" autoeventwireup="true" inherits="Default_Chat, App_Web_e1jp1m1s" %>

<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
    <title></title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" />
    <meta name="apple-mobile-web-app-capable" content="yes" />
    <meta name="apple-mobile-web-app-status-bar-style" content="black" />
    <meta name="format-detection" content="telephone=no" />
    <link rel="shortcut icon" href="../Images/favicon.ico" type="image/x-icon" />
    <%=MainCss%>
    <script src="js/jquery.min.js" type="text/javascript"></script>
    <script src="js/main.js" type="text/javascript"></script>
    <style>
        .msg_tb{font-size:10pt}
        .msg_img{ width:50px; height:50px;}
        .msg_photo{ width:200px;}
        .msg_price{ color:#ff0000}
    </style>
</head>

<body class="body" style="overflow:hidden;">
    
    <script type="text/javascript">

        $(document).ready(function () {
            scrollWindow();
        });

        function scrollWindow() {
            $(".container").scrollTop($(".container")[0].scrollHeight);
        }

        function sendMsg() {
            __doPostBack("lnbSend", "");
        }

    </script>

    <header>

        <div class="topbar">
            <a href="javascript:history.back(-1)" class="back_btn"><i class="icon iconfont">&#xf0115;</i></a>
            <asp:HyperLink ID="hlHistory" runat="server" CssClass="top_home"><i class="icon iconfont">&#xf00d7;</i></asp:HyperLink>
            <h1 class="page_title"><asp:Label ID="lblTitle" runat="server"></asp:Label></h1>
        </div>

    </header>

    <form id="form1" runat="server">
    
        <asp:ScriptManager id="ScriptManager1"  runat="server"></asp:ScriptManager>
    
        <div class="container" style="width:100%; position:absolute; background:#fff; top:40px; bottom:30px; height:auto; overflow:auto;">

            <asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional">
                <ContentTemplate>
        
                    <asp:Timer id="Timer1" runat="server" Interval="1000" OnTick="Timer1_Tick">
                    </asp:Timer>
        
                    <div id="ChatContent" runat="server" style="padding:20px 30px;">
                    </div>

                </ContentTemplate>
                <Triggers>
                    <asp:AsyncPostBackTrigger ControlID="btnSend" EventName="Click" />
                </Triggers>
            </asp:UpdatePanel>

        </div>
        
        <div class="clearbox"></div>
        
        <div class="comm_reply_wrap" style="background:#F8F8F8">
            
            <asp:UpdatePanel ID="UpdatePanel2" runat="server" UpdateMode="Conditional">
                <ContentTemplate>
        
                    <table style="width:100%;">
                        <tr>
                            <td style="width:30px; text-align:center">
                                <a href="ChatUpload.aspx" class="icon_btn dropdown-toggle fancybox fancybox.iframe" title="发送附件" style="color:#666;"><i class="icon iconfont" style="font-size:20pt;">&#xf00b4;</i></a>
                            </td>
                            <td>
                                <asp:TextBox ID="txtContent" runat="server" TextMode="MultiLine" style="width:100%; border:solid 1px #fff; border-radius:5px; background:#fff; outline:none;"></asp:TextBox>
                            </td>
                            <td style="width:65px;">
                                <asp:Button ID="btnSend" runat="server" Text="发送" CssClass="bgcolor1" OnClick="btnSend_Click" style="width:60px; border-radius:5px; padding:5px; border:0px; height:35px;" />
                            </td>
                        </tr>
                    </table>
                    
                    <div style="display:none">
                        <asp:TextBox ID="txtFile" runat="server"></asp:TextBox>
                        <asp:LinkButton ID="lnbSend" runat="server" OnClick="lnbSend_Click"></asp:LinkButton>
                    </div>

                </ContentTemplate>
            </asp:UpdatePanel>

        </div>

    </form>
 
	<script type="text/javascript" src="js/Fancybox/jquery.fancybox.js?v=2.1.5"></script>
	<link rel="stylesheet" type="text/css" href="js/Fancybox/jquery.fancybox.css?v=2.1.5" media="screen" />
    <script type="text/javascript">
        $(document).ready(function () {
            $(".fancybox").fancybox({
                parent: "form:first"
            });
        });
	</script>

</body>

</html>